import { Entity, Column} from 'typeorm';
import { CommonEntity } from './common.entity'
// like：点赞表
@Entity('like')
export class LikeEntity extends CommonEntity {
  @Column({
    type: 'int',
    name: 'user_id',
    comment: '用户id',
  })
  userId: number;

  @Column({
    type: 'int',
    name: 'posts_id',
    comment: '文章id',
  })
  postsId: number;
}
